import request from '@/utils/request'
export default {
  reqShopKindsList () {
    return request.get('/shopping/v2/restaurant/category')
  },
  reqGuessLocation (type) {
    // return request.get(`/v1/cities?type=${type}`)
    return request.get(`/v1/cities?type=${type}`)
  },
  //根据城市id获取城市信息
  reqCityInfo (id) {
    return request.get(`/v1/cities/${id}`)
  },
  //获取城市搜索地址
  //https://elm.cangdu.org/v1/pois?city_id=1&keyword=迪士尼&type=search
  reqSearchAddress (city_id, keyword) {
    return request.get(`/v1/pois?city_id=${city_id}&keyword=${keyword}&type=search`)
  },
  //根据经纬度详细定位
  //添加商铺
  reqAddShop (data) {
    return request.post('/shopping/addshop', data)
  }
}
